<table class="table table-condensed movimentacao" style="width:95%;">
    <tr><th style="width:90px;">Data</th>
        <th style="width:200px;">Destino</th>
        <th>Histórico</th>
        <th style="width:50px;"></th></tr>
        <tr>
            <td><?php echo $this->formataData($this->atual['data']); ?></td>
            <td><?php echo $this->atual['destino'] ; ?></td>
            <td>Enviado para o destino.</td>
            <td></td>
        </tr>
<?php if(isset($this->origem[$this->atual['id']])): ?>
<?php foreach ($this->origem[$this->atual['id']] as $origem): ?>
    <tr>
        <td><?php echo $this->formataData($origem['dt_criacao']); ?></td>
        <td><?php echo $origem['destino'] ; ?></td>
        <td><?php echo $origem['historico'] ; ?></td>
        <td><?php if($origem['responsavel_id']==$this->user->id): ?>
            <a class="cursor btnEditarMov" data-id="<?php echo $origem['id'];?>" 
               data-doc_id="<?php echo $this->atual['id'];?>" 
               data-texto="<?php echo $origem['destino'];?>" >
                <img width="15" src="<?php echo $this->ServerUrl().$this->baseUrl().'/images/edit.png';?>"/>
            </a>
            <a class="cursor btnExcluirMov" data-id="<?php echo $origem['id'];?>" 
               data-doc_id="<?php echo $this->atual['id'];?>" 
               data-texto="<?php echo $origem['destino'];?>" >
                <img width="15" src="<?php echo $this->ServerUrl().$this->baseUrl().'/images/trash.png';?>"/>
            </a>
            <?php else: ?>
                <span class="pull-right" style="font-size: 12px; color:silver;">[<?php echo $this->usuarios[$origem['responsavel_id']]?>]</span>
            <?php endif; ?>
        </td>
    </tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="conteudo"></div>

